At a glance
Kepler found three rules in Tycho Brahe's careful records of planet positions: the orbit's shape, how the speed changes along it, and how the period grows with orbit size. This sim moves its planets by Newton's inverse-square pull alone, so you can watch all three rules come out of that one force law.
What you'll learn
- What an ellipse with the Sun at a focus looks like, and how the eccentricity e shapes it.
- How the planet's speed and its swept area depend on where it is on the orbit.
- Whether a planet's own mass plays any part in its motion.
- How the period T depends on the orbit size a, across the Solar System.
What's on screen
- Sun (amber) at one focus; ◆ empty focus (grey) at the other.
- Teal ellipse: the exact Kepler orbit for your e, drawn from its formula.
- Blue planet and trail: moved step by step by Newton's law, with a faint line to the Sun.
- K2 wedges: orange near perihelion, cyan near aphelion, with their areas A₁, A₂.
- K3 view: planets round the Sun (left) and a log–log plot of T² against a³ (right).
The controls
Press ⌖ on a row to see where that control sits in the sim.
| Control | What it changes | Range | |
|---|---|---|---|
| Law mode | Which law the stage shows: K1 the orbit, K2 the swept areas, K3 the whole system. | K1 / K2 / K3 opens at K1 | |
| Eccentricity e (K1, K2) | The orbit's shape, from a circle to a long ellipse. Each change restarts the planet at perihelion. | 0–0.85 opens at 0.60 | |
| Swept areas (K2) | A₁ and A₂: the areas swept in two windows of equal duration, 0.10 T each, and their ratio. | readout | |
| Planet chips (K3) | Adds a real planet, Mercury to Saturn. Its period is measured, then plotted. | a = 0.39–9.54 AU | |
| T² / a³ (K3) | The average of T²/a³ over the measured planets, in yr²/AU³, with the count added / measured. | readout | |
| ▶ Play / ⏸ Pause | Runs the planets, or freezes them where they are. | top bar | |
| Speed | Plays the motion faster or slower. At 1×, one year takes 2 s. The physics stays the same. | 0.25×–4× opens at 1× | |
| ↻ Reset | Puts e back to 0.60, clears added planets, and restarts the mode you are in. | top bar |
Fixed: in K1 and K2, a = 1 AU, so T = 1 yr. The Sun is held still. Units are AU, years and solar masses, in which GM☉ = 4π² AU³/yr².
One force law, one ellipse
The planet is pulled straight toward the Sun, with a strength that falls off as 1/r². That is all the sim uses to move it:
Every bound orbit under this force is an ellipse with the Sun at one focus. That is Kepler's first law (K1). In polar form, with r measured from the Sun:
- a sets the size, and e sets the shape. The Sun is a distance ae from the centre.
- Closest approach is r = a(1 − e) (perihelion); farthest is r = a(1 + e) (aphelion). At e = 0.60 these are 0.40 AU and 1.60 AU.
- The other focus is empty. Nothing sits there; it is pure geometry.
Equal areas in equal times
The pull points straight at the Sun, so it exerts no torque about the Sun, and the planet's angular momentum L stays constant. The rate at which the Sun–planet line sweeps out area is L/2m, so it is constant too:
- This is Kepler's second law (K2): equal areas in equal times.
- Near the Sun the wedge is short, so it must be wide: the planet covers more of its orbit. Far out, the wedge is long and thin.
- K2 needs only a central force. The 1/r² form is what makes the orbit a closed ellipse.
Fastest near the Sun
At perihelion and aphelion the velocity is at right angles to the Sun–planet line, so constant L gives rpvp = rava. The speed ratio then depends on e alone:
This slider moves the sim too.
At e = 0.60 the planet is 4 times faster at perihelion (59.6 km/s) than at aphelion. At e = 0 the speed is constant, 2π AU/yr ≈ 29.8 km/s, which is close to Earth's.
The planet's mass drops out
- Gravity pulls a heavier planet harder, in exact proportion to its mass. Its inertia grows in the same proportion, so its acceleration is unchanged.
- At 1 AU, every planet accelerates at GM☉/r² = 4π² ≈ 39.5 AU/yr², whatever its mass.
- The same start then gives the same orbit and the same period. No planet mass appears in K1, K2 or K3.
- One idealisation: the sim holds the Sun still. Strictly, T depends on M☉ + m; for Jupiter, the heaviest planet, that shifts T² by about 0.1%.
T² = a³ across the Solar System
- Newton's law gives Kepler's third law (K3): T² = 4π²a³/GM☉. In AU, years and solar masses, GM☉ = 4π², so T² = a³.
- T grows as a3/2, faster than a. Jupiter, at a = 5.20 AU, takes √(5.20³) ≈ 11.9 yr.
- In K3 mode each planet is moved by Newton's law, and its period is timed between perihelion passages. A hollow point is still being timed; a solid point is measured.
- On the log–log plot, T² = a³ is a straight line of slope 1. Around a heavier star the line shifts down, with the same slope.
Where it matters
- Weighing the Sun. Rearranged, K3 gives the central mass: M = 4π²a³/GT². Earth's orbit (1 AU, 1 yr) gives M☉ ≈ 2.0 × 10³⁰ kg.
- The black hole at the centre of our galaxy. The star S2 orbits it every 16 years at about 1000 AU. K3 then gives about 4 million solar masses.
- Geostationary satellites. The same law around Earth: an orbit that takes one sidereal day must have a radius of about 42 000 km from Earth's centre, which is why they all sit at the same height.
Go deeper: why only 1/r² gives a closed ellipse
- Any central force sweeps equal areas, but most bound orbits never close: each lap the perihelion shifts, and the path traces a rosette.
- Bertrand's theorem says only two force laws close every bound orbit: the inverse square, and the spring force F ∝ r. Of these, only the inverse square has the Sun at a focus.
- Mercury's perihelion does shift slowly, partly because of the other planets and partly because of general relativity, which adds a small correction to 1/r².
Summary
Key points
- K1: the orbit is an ellipse with the Sun at one focus; e sets its shape.
- K2: no torque about the Sun keeps L constant, so equal areas take equal times and vp/va = (1+e)/(1−e).
- The planet's mass cancels, so it plays no part in the orbit.
- K3: T² = a³ in AU and years, for every planet of the Sun.
Common mix-ups
- "The Sun is at the centre of the ellipse." It is at a focus, a distance ae from the centre: 0.60 AU at the opening setting.
- "Planets move at a steady speed." Only on a circle. On an ellipse they are fastest at perihelion.
- "Equal areas only works for 1/r² gravity." Any central force gives equal areas. The 1/r² form is what gives the closed ellipse and T² = a³.
Things to try on your own
- In K2, take e from 0 to 0.85 and compare the shapes of the two wedges with the A₁/A₂ readout.
- In K3, add all seven planets and check that T²/a³ stays close to 1.000 as Saturn joins.
- Use T = a3/2 to predict Saturn's period from a = 9.54 AU, then compare with its point on the plot.